<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2025/7/18
  Time: 15:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>1.jsp</h3>
<a href="#" onclick="funA()">发送</a>
</body>
</html>
<script>
    function funA() {
        let name = '张三'
        alert(name)
        name = encodeURI(name)
        alert(name);
        name = encodeURI(name)
        alert(name);
        let age = 19;
        location.href = '2.jsp?name=' + name + '&age=' + age
    }
</script>
